package net.expectx.pay.gateway.dao.mapper;

import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @author lj
 * 2018-05-17
 */
public interface BaseMapper<Record, Example> {
    int insert(Record var1);

    int insertSelective(Record var1);

    int deleteByExample(Example var1);

    int deleteByPrimaryKey(Object var1);

    int updateByExampleSelective(@Param("record") Record var1, @Param("example") Example var2);

    int updateByExample(@Param("record") Record var1, @Param("example") Example var2);

    int updateByPrimaryKeySelective(Record var1);

    int updateByPrimaryKey(Record var1);

    List<Record> selectByExample(Example var1);

    Record selectByPrimaryKey(Object var1);

    long countByExample(Example var1);

    int physicalRemoveByExample(@Param("isDeleted") Byte var1, @Param("example") Example var2);
}

